home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / overview / dtscpluslibrary / resources / memoryclass.r < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.8 KB  |  52 lines

  1. /*
  2.     File:        MemoryClass.r
  3.  
  4.     Contains:    TMemory is a simple object checks heap and stack values, as well as changes them.
  5.                   TMemoryClass.r contains the resource definitions and resources used byt TMemory and TMemory testing. 
  6.                   Add these resources to the test framework using something similar as:
  7.                   Rez -rd -o TargetApplication MemoryClass.r -append
  8.  
  9.     Written by: Kent Sandvik    
  10.  
  11.     Copyright:    Copyright © 1993-1999 by Apple Computer, Inc., All Rights Reserved.
  12.  
  13.                 You may incorporate this Apple sample source code into your program(s) without
  14.                 restriction. This Apple sample source code has been provided "AS IS" and the
  15.                 responsibility for its operation is yours. You are not permitted to redistribute
  16.                 this Apple sample source code as "Apple sample source code" after having made
  17.                 changes. If you're going to re-distribute the source, we require that you make
  18.                 it clear in the source that the code was descended from Apple sample source
  19.                 code, but that you've made changes.
  20.  
  21.     Change History (most recent first):
  22.                 8/18/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  23.                 
  24.  
  25. */
  26. // INCLUDES
  27. #include "SysTypes.r"
  28. #include "Types.r"
  29. #include "ApplicationResources.h"
  30.  
  31.  
  32. #define kBaseID 1
  33.  
  34. // This is our 'stak' resource definition.
  35. type 'stak' {
  36.         longint;                        // stack size
  37. };
  38.  
  39. resource 'stak' (kBaseID, purgeable) {
  40.     16 * 1024        // Base stack size. TMemory sums this entry for all 'stak' resources to
  41.                     // determine what it should set the stack limit to at application
  42.                     // startup.
  43. };
  44.  
  45. // _________________________________________________________________________________________________________ //
  46.  
  47. /*    Change History (most recent last):
  48.   No        Init.    Date        Comment
  49.   1            khs        1/2/93        New file
  50.   2            khs        1/3/93        Cleanup
  51. */
  52.